import { Node } from "cc";
import { GObject } from "fairygui-cc";


export interface IComponent {

    /**
     * 设置父节点
     * @param target 
     * @param args 
     * @param isLoad
     */
    init(target: GObject | Node, args: any, isLoad?: boolean): any;


    /**
     * 销毁
     */
    destroy(): any;
}